package ycyc.Games.gomoku3;

public class Math {
	private static float threshold=1.1f;
	public static boolean greatThan(float a, float b){
		return a >= b * threshold;
	}
	public static boolean greatOrEqualThan(float a, float b){
		return a * threshold >= b;
	}
	public static boolean littleThan(float a, float b){
		return a * threshold <= b;
	}
	public static boolean littleOrEqualThan(float a, float b){
		return a <= b * threshold;
	}
	public static boolean equal(float v, float b){
		return (v * threshold >= b) && (v <= b * threshold);
	}
}
